<?php
App::uses('AppController', 'Controller');
/**
 * Adm Controller
 *
 * @property Adm $Adm
 */
class AdmController extends AppController {

/**
 * index method
 *
 * @return void
 */
	public function index() {
		//$this->Uf->recursive = 0;
		//$this->set('ufs', $this->paginate());
		
		//$this->paginate = array('limit' => 10);
		//$ufs = $this->paginate('Uf');
		//$this->set(compact('ufs'));
	}

/**
 * view method
 *
 * @throws NotFoundException
 * @param string $id
 * @return void
 */
	public function view($id = null) {
		/*$this->Uf->id = $id;
		if (!$this->Uf->exists()) {
			throw new NotFoundException(__('Invalid uf'));
		}
		$this->set('uf', $this->Uf->read(null, $id));*/
	}

/**
 * add method
 *
 * @return void
 */
	/*public function add() {
		if ($this->request->is('post')) {
			$this->Uf->create();
			if ($this->Uf->save($this->request->data)) {
				$this->Session->setFlash(__('The uf has been saved'));
				$this->redirect(array('action' => 'index'));
			} else {
				$this->Session->setFlash(__('The uf could not be saved. Please, try again.'));
			}
		}
		$categorias = $this->Uf->Categoria->find('list');
		$entidades = $this->Uf->Entidade->find('list');
		$this->set(compact('categorias', 'entidades'));
	}*/

/**
 * edit method
 *
 * @throws NotFoundException
 * @param string $id
 * @return void
 */
	/*public function edit($id = null) {
		$this->Uf->id = $id;
		if (!$this->Uf->exists()) {
			throw new NotFoundException(__('Invalid uf'));
		}
		if ($this->request->is('post') || $this->request->is('put')) {
			if ($this->Uf->save($this->request->data)) {
				$this->Session->setFlash(__('The uf has been saved'));
				$this->redirect(array('action' => 'index'));
			} else {
				$this->Session->setFlash(__('The uf could not be saved. Please, try again.'));
			}
		} else {
			$this->request->data = $this->Uf->read(null, $id);
		}
		$categorias = $this->Uf->Categoria->find('list');
		$entidades = $this->Uf->Entidade->find('list');
		$this->set(compact('categorias', 'entidades'));
	}*/

/**
 * delete method
 *
 * @throws MethodNotAllowedException
 * @throws NotFoundException
 * @param string $id
 * @return void
 */
	/*public function delete($id = null) {
		if (!$this->request->is('post')) {
			throw new MethodNotAllowedException();
		}
		$this->Uf->id = $id;
		if (!$this->Uf->exists()) {
			throw new NotFoundException(__('Invalid uf'));
		}
		if ($this->Uf->delete()) {
			$this->Session->setFlash(__('Uf deleted'));
			$this->redirect(array('action' => 'index'));
		}
		$this->Session->setFlash(__('Uf was not deleted'));
		$this->redirect(array('action' => 'index'));
	}*/
}
